package org.sn.jdish.spring.springboot.controller;

import org.sn.jdish.spring.springboot.service.DemoBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * springboot helloworld
 * 
 * @author snzigod@hotmail.com
 */
@RestController
@RequestMapping("/demo")
public class DemoController {
	
	@Autowired
	private DemoBiz demoBiz;

	@ResponseBody
	@RequestMapping("/helloworld")
	String home() {
		return demoBiz.sayHello("snzigod");
	}

}